package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.UserSecScheduleDao;
import com.qc.entity.SecScheduleEntityVo;
import com.qc.entity.UserSecScheduleEntity;
import com.qc.service.UserSecScheduleService;

@SuppressWarnings("rawtypes")
@Service("userSecScheduleService")
public class UserSecScheduleServiceImpl implements UserSecScheduleService{

    @Resource(name="userSecScheduleDao")
    private UserSecScheduleDao userSecScheduleDao;
    
    @Override
    public int getListUserSecScheduleCount(String userId, String createTime) {

        return userSecScheduleDao.getListUserSecScheduleCount(userId, createTime);
    }

    @Override
    public List getAllUserSecSchedule(String userId, String createTime,int pageNo, int pageSize) {

        return userSecScheduleDao.getAllUserSecSchedule(userId, createTime, pageNo, pageSize);
    }

    @Override
    public SecScheduleEntityVo getSecScheduleId(long id) {

        return userSecScheduleDao.getSecScheduleId(id);
    }

    @Override
    public int deleteUserSecScheduleId(long id) {

        return userSecScheduleDao.deleteUserSecScheduleId(id);
    }

    @Override
    public int getListSecScheduleCommCount(String name) {

        return userSecScheduleDao.getListSecScheduleCommCount(name);
    }

    @Override
    public List getAllSecScheduleComm(String name, int pageNo, int pageSize) {

        return userSecScheduleDao.getAllSecScheduleComm(name, pageNo, pageSize);
    }

    @Override
    public int deleteSecScheduleCommId(long id) {

        return userSecScheduleDao.deleteSecScheduleCommId(id);
    }
    
    @Override
	public int getMerchantUserCount(String title, long shopId) {

		return userSecScheduleDao.getMerchantUserCount(title, shopId);
	}

	@Override
	public List<UserSecScheduleEntity> getAllMerchantUser(String title, long shopId, int pageNo, int pageSize) {

		return userSecScheduleDao.getAllMerchantUser(title, shopId, pageNo, pageSize);
	}


}
